package com.david.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @program: Secondskill-Demo
 * @description: 公共返回对象枚举
 * @author: David
 * @version:
 * @create: 2022-04-11 22:59
 **/
@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    //通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务器异常"),

    /**
     * 登录模块
     */
    LOGIN_ERROR(500210,"用户名或密码错误"),
    MOBILE_ERROR(500211,"手机号码格式有误"),
    //BindERROR错误
    BIND_ERROR(500212,"参数校验异常");


    private final Integer code;
    private final String message;
    //todo
    //private final Object obj;
}
